package com.tom.architect.party3.day30;

/**
 * Added by Tom on 2024/01/08.
 */
public class HelloDemo {


    public static void main(String[] args) {
        String result ="abcdSvrFuncResultABCD";

         if (result.contains("SvrFuncResult")) {
            // 包含SvrFuncResult
            int index = result.indexOf("SvrFuncResult");
             result = result.substring(0, index);
             System.out.println("result:" +result);
        }

    }
}
